package cn.lixin.hrm.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.RestController;

@RestController
@ConfigurationProperties(prefix = "file.alicloud")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AliyunOssProperties {

    private String bucketName;
    private String accessKey;
    private String secretKey;
    private String endpoint;

    @Override
    public String toString() {
        return "AliyunOssProperties{" +
                "bucketName='" + bucketName + '\'' +
                ", accessKey='" + accessKey + '\'' +
                ", secretKey='" + secretKey + '\'' +
                ", endpoint='" + endpoint + '\'' +
                '}';
    }
}
